package com.tyj.movie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tyj.movie.entity.MovieTheatreOrder;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author tyj
 * @since 2021-06-28
 */
public interface MovieTheatreOrderMapper extends BaseMapper<MovieTheatreOrder> {

    /**
     * 修改订单状态
     * @param orderSn 订单号
     * @param code 状态
     */
    void updateOrderState(@Param("orderSn") String orderSn, @Param("code") Integer code);

    void updateOrderStateAndTradeNo(@Param("orderSn") String orderSn, @Param("code") Integer code, @Param("trade_no") String trade_no);
}
